//
//  ChooseAcountCell.m
//  renmingongshe
//
//  Created by Mao on 2017/11/10.
//  Copyright © 2017年 xiaodian. All rights reserved.
//

#import "ChooseAcountCell.h"

@implementation ChooseAcountCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)cellConfig:(NSDictionary *)di
{
    NSString *str;
    if ([di[@"accType"]integerValue]==1) {
        self.imageView.image = [UIImage imageNamed:@"alipay"];
        str = @"支付宝";
    }else if([di[@"accType"]integerValue]==2){
        self.imageView.image = [UIImage imageNamed:@"wechatpay"];
        str = @"微信";
    }else{
        str = @"银行卡";
    }
    _title.text = str;
    _num.text = di[@"accNo"];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
